package com.lbx;

import com.lbx.entity.User;
import com.lbx.service.UserService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author 吕兵星
 * @date 2020/10/20 19:35
 */
public class TestMain {
    public static void main(String[] args) {
        UserService userService = (UserService) new ClassPathXmlApplicationContext("applicationContext.xml").getBean("userService");
        userService.getUser();
        User user = (User) new ClassPathXmlApplicationContext("applicationContext.xml").getBean("user");
        user.show();
    }
}
